package cn.stylefeng.guns.sys.core.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "qiniu")
@Data
public class QiniuConfig {

    /**
     * ACCESS_KEY
     */
    @Value("${qiniu.ACCESS_KEY}")
    private String ACCESS_KEY;

    /**
     * SECRET_KEY
     */
    @Value("${qiniu.SECRET_KEY}")
    private String SECRET_KEY;

    /**
     *  bucketname
     */
    @Value("${qiniu.bucketname}")
    private String bucketname;

    /**
     *  max_size
     */
    @Value("${qiniu.max_size}")
    private long max_size;

    /**
     *  host
     */
    @Value("${qiniu.host}")
    private String host;
}
